package com.hc.res;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author hecai
 * @date 2021/12/7 15:10
 * 商品规格表（sku表）
 */
@ApiModel(value = "com-hc-domain-ProductSpecs")
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SkuItem implements Serializable {
    private static final long serialVersionUID = -1203262014831273606L;
    /**
     * 规格编号
     */
    @ApiModelProperty(value = "规格编号")
    private Integer id;

    /**
     * 规格名称
     */
    @ApiModelProperty(value = "规格名称")
    private String name;

    /**
     * 规格列表
     */
    @ApiModelProperty(value = "规格列表")
    private String specs;

    /**
     * 会员价格
     */
    @ApiModelProperty(value = "会员价格")
    private BigDecimal price1;

    /**
     * 市场价格
     */
    @ApiModelProperty(value = "市场价格")
    private BigDecimal price2;

    /**
     * 首图
     */
    @TableField(value = "img")
    @ApiModelProperty(value = "首图")
    private String img;

}